package com.ys.servers.points.dao;

import com.ys.servers.common.data.UserType;
import com.ys.servers.points.data.UserPointsLog;
import io.vertx.core.Future;

import java.util.List;


/**
 * Created by taotao on 2017/5/10.
 */
public interface UserPointsLogDao {

    public Future<UserPointsLog> addUserPointsLog(UserPointsLog userPointsLog);

    public Future<Boolean> addUserPointsLogToRedisList(long days,UserPointsLog userPointsLog);

    public Future<Long> refreshRecentLogs(long days, String userId, UserType userType);

    public Future<List<UserPointsLog>> getRecentlyPointsType(long days,int limit,int offset, String userId, UserType userType);
}
